Skip to content

update AI_POLICY to 2.0 - #5561

Open
orbeckst wants to merge 6 commits into
developfrom
update-ai-policy-v2
Open

orbeckst wants to merge 6 commits into
developfrom
update-ai-policy-v2

Conversation

@orbeckst

@orbeckst orbeckst commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Changes made in this Pull Request:

  • AI policy now allows AI-generated content and makes guiding principles explicit
  • agreed upon by a majority of @MDAnalysis/coredevs at business meeting on 2026-10-26

LLM / AI generated code disclosure

  • I have read and understood MDAnalysis's AI policy in AI_POLICY.md.

LLMs or other AI-powered tools (beyond simple IDE use cases) were used in this contribution: no

PR Checklist

  • [n/a] Issue raised/referenced?
  • [n/a] Tests updated/added?
  • Documentation updated/added?
  • package/CHANGELOG file updated?
  • Is your name in package/AUTHORS? (If it is not, add it!)
  • I have read and understand the current AI Policy
  • LLM/AI disclosure was updated.

Developers Certificate of Origin

I certify that I can submit this code contribution as described in the Developer Certificate of Origin, under the MDAnalysis LICENSE.

- AI policy now allows AI-generated content and makes guiding principles explicit
- agreed upon by a majority of @coredevs at business meeting on 2026-10-26
@read-the-docs-community

read-the-docs-community Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 MDAnalysis | 🛠️ Build #36218621 | 📁 Comparing 468b370 against latest (5d5a634)

  🔍 Preview build  

2 files changed
± index.html
± documentation_pages/analysis/wbridge_analysis.html

@orbeckst

Copy link
Copy Markdown
Member Author

@MDAnalysis/coredevs this PR is based on the discussed draft with all changes included and very small rearrangements and grammar fixes.

Please have a look, make/request any fixes, and once you're happy please review and approve so that there's a public document that shows the org leadership's support.

@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.93%. Comparing base (5d5a634) to head (468b370).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5561      +/-   ##
===========================================
- Coverage    93.93%   93.93%   -0.01%     
===========================================
  Files          184      184              
  Lines        22680    22679       -1     
  Branches      3228     3228              
===========================================
- Hits         21304    21303       -1     
  Misses         916      916              
  Partials       460      460              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tylerjereddy tylerjereddy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty reasonable overall--I added a few small comments.

Making issue and PR descriptions digestible by a human seems to be a major problem in a lot of projects that have high volumes of activity.

Hiding some AI analysis in a markdown "details" block is sometimes useful in discussions, but agree with the spirit of discouraging LLM info dumps in issues and PRs.

Comment thread AI_POLICY.md
or for language translation purposes. **Such uses must always be declared.**
* Humans are always responsible for AI output.
* Contributors must be transparent and honest; this includes that AI-use must always be declared.
* In forums designed for humans (e.g., issue tracker, discussions) only humans are allowed to speak. We want to spend our time talking with humans, not with LLMs (or human proxies for LLMs).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor suggestion might be to note "unless otherwise agreed" if that can be done in a way that isn't confusing. I've seen a few cases now where a subteam in a larger project decided that for certain tasks they would allow higher levels of automation.

In general though, this is in alignment with most other ecosystem projects.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that could be useful for the issue tracker at least. I can see a few cases where automation might play a role also on opening issues for example.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that "limited exceptions" is already mentioned below, so definitely good to add it here too.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest not adding the exception here for now and adding it in the future when it's necessary. The special cases being described here are going to be mostly specific to the core developers, and I would expect everything under the policy to be at the discretion of the core developers.

Comment thread AI_POLICY.md Outdated

## Policy foundations

MDAnalysis allows AI generated content in code and documentation but not in forums intended for humans (with some limited exceptions).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, this should allow us to make some targeted progress in a few areas, with proper human oversight.

Comment thread AI_POLICY.md Outdated

### Expertise and trust matter

The project benefits from human expertise but not from low-effort contributions and hence CoreDevelopers will exercise broad discretion in rejecting PRs outright that appear to be AI-generated slop or situations where the AI generated code is not fully understood by the contributing author. This may mean that PRs are treated differently, depending on who is submitting them. Someone who has contributed to the project over time may be trusted to use generative AI responsibly and have their PR reviewed while a new contributor’s PR is just rejected.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: this line is > 500 chars long; here and elsewhere, may be nice to break lines a little shorter for future diffs, etc.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe "CoreDevelopers" -> two words?

Comment thread AI_POLICY.md

Please understand that reviewing capacity is very limited for the project, so large PRs which appear to not have the requisite understanding might not get reviewed, and eventually closed or redirected.
Understanding from authors about what code they are contributing and how it fits into the larger picture is crucial; for new features in particular, we are looking for domain expertise.
If reviewers feel there is a lack of understanding from looking at the code, PR descriptions, or just general interactions with a contributor, we reserve the right to close the PR to save time and resources.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're mentioning this a lot. I suppose that's fine--we want to be clear and have something to point to if folks complain if/when PRs get closed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree it sounds a bit repetitive, but I think this is a very important point. We always tried to be a inclusive and welcoming community (and we still try hard!), so it make sense to stress these points since PR rejection might be taken badly in some cases (maybe more by the AI agents themselves than the human contributors.... It's important to stress we are welcoming and inclusive and willing to give our time to new contributors when there is genuine human effort behind, not just waste time interacting with AI through a human proxy.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've had enough folks reacting poorly to our decisions that being repetitive is an unfortunate need.

Comment thread AI_POLICY.md Outdated
Assisted-by: ChatGPT:GPT-6.1-Sol-Light

Assisted-by: Claude:claude-opus-5-5 Cursor
```

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting--I'm not a fan of this one. I usually intentionally don't have this in my commits but do disclose in the PR description, with the reasoning that it really is me who is responsible at the end of the day, just like I don't say what text editor I used.

I don't really mind it that much though.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you're not the first one being ho-hum about the assisted-by tag. I originally included it because in the discussions it was clear that we wanted to know when AI was involved and that it may be useful to have this information associated with the code, not just the PR, e.g., for later analysis of where AI was used.

However, this part does not seem to be central to the AI policy, so I can also see this being shelved if more folks don't see enough value in it. It would just be good to see comments.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I lean towards Tyler's stance here.

It probably makes sense for "fully AI generated" code to have a commit attribution, but then the words "assisted by" should maybe be "created by".

For true "assisted by", I think it might be better to not have it. I.e. I often use LLMs as fancy linters, so I'm assisted by them as much as I am by black or mypy.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't feel strongly either way. But maybe it is a bit of an annoyance for us to check and make sure it is included in the squash-merge, so in the view that our time is limited maybe it is worth dropping and only requiring disclosure in the PR description.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the comments, I'll remove the Assisted-by tag from the draft.

Comment thread AI_POLICY.md Outdated
```

Fully AI-generated contributions, such as content generated by prompting a large language model (e.g. claude code or chatgpt) or produced by any agentic AI system are not permitted in MDAnalysis.
(Ask the model to generate the appropriate tag for you or provide your best guess.)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I don't usually let my clanker write commits, and instead ask it to stage changes for human inspection.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the language was not clear, the meaning was "My project requires commit log messages to include a line 'Assisted-by: MODEL:version [TOOL]'. Tell me what I need to write there."

Perhaps just rewrite as

Suggested change
(Ask the model to generate the appropriate tag for you or provide your best guess.)
(Provide your best guess – for instance, if you don't know which version of Claude you used, just put "Claude" for the AGENT_NAME and leave the rest blank.)

and leave it to the people to figure out that they can ask.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not relevant without Assisted-by tag.

Comment thread AI_POLICY.md
In these limited cases of code generation, typically ranging from a single variable to a couple of lines of code,
AI assitance is deemed acceptable. However, if code generation exceeds minimal, sporadic amounts (e.g. repeated or large multi-line blocks),
it would be considered fully AI-generated and, as defined in section #1, is not acceptable.
You may use AI help to, for instance, generate a reproducer case, or format tables to communicate results. But a human has to write the overall post and be in charge of the content.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps also noteworthy that an issue that was discovered by an LLM or LLM-driven fuzzer may be considered low priority if the real world use case isn't fully clear. I believe NumPy recently added a section to their issue templates for the real-world relevance/how it was encountered. I forget if we already have that--a minimum viable reproducer from a fuzzer isn't quite the same thing as relevance and worthy of human attention of course.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any language you want to add/change here?

We don’t have anything like this in the PR template. It sounds like a good idea. Can you raise an issue so that we don’t forget to update?

Comment thread AI_POLICY.md
Any failures to comply with this policy should be reported to the MDAnalysis core developers through
our [standard communications channels](https://www.mdanalysis.org/pages/community/#ask-questions--get-help) or email to mdanalysis@numfocus.org .
The core developers may enforce this policy through a range of actions, which may include restricting or banning individuals from future contributions.
The Core Developers may enforce this policy through a range of actions, which may include restricting or banning individuals from future contributions.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somewhat related: did we ever set a new PR count limit for non maintainers?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good reminder, I just set it to 1 for non-write access (and lifted the limit if they have at least 2 PRs merged).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@RMeli RMeli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I left a few comments. I don't think it was discussed before, but maybe we can add something like the following somewhere?

LLMs can generate a lot of code in seconds. Consider splitting your PRs in smaller self-contained chunks if possible, so that human review does not become the bottleneck.

Comment thread AI_POLICY.md Resolved
Comment thread AI_POLICY.md
or for language translation purposes. **Such uses must always be declared.**
* Humans are always responsible for AI output.
* Contributors must be transparent and honest; this includes that AI-use must always be declared.
* In forums designed for humans (e.g., issue tracker, discussions) only humans are allowed to speak. We want to spend our time talking with humans, not with LLMs (or human proxies for LLMs).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that could be useful for the issue tracker at least. I can see a few cases where automation might play a role also on opening issues for example.

Comment thread AI_POLICY.md
* In forums designed for humans (e.g., issue tracker, discussions) only humans are allowed to speak. We want to spend our time talking with humans, not with LLMs (or human proxies for LLMs).
* Human time is precious. Core Developers can always decide that a contribution does not justify the review effort and close it.
* The project benefits most from expertise, not just code/documentation.
* Scientific code has to be correct. If no human can assess or validate the code then we cannot include it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Scientific code has to be correct. If no human can assess or validate the code then we cannot include it.
* Scientific code has to be correct. If no human can assess or validate the code then we cannot include it. This includes contributions that provide significant speedups at the price of code obfuscation.

Or something similar? In my experience this is quite a common case that might be worth singling out.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit] I like Rocco's suggestion, but would maybe change that from "This includes" to "For example".

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That’s very good to include. I just would try to move it down into the policy details section and try to keep the foundations section fairly tight.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me.

Comment thread AI_POLICY.md
* Human time is precious. Core Developers can always decide that a contribution does not justify the review effort and close it.
* The project benefits most from expertise, not just code/documentation.
* Scientific code has to be correct. If no human can assess or validate the code then we cannot include it.
* Best practice norms, e.g. software contribution standards set by the project, must always be followed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Best practice norms, e.g. software contribution standards set by the project, must always be followed.
* Best practice norms, e.g. software contribution standards set by the project, must always be followed. Some of these norms are collected in `AGENTS.md`.

Comment thread AI_POLICY.md
or for language translation purposes. **Such uses must always be declared.**
* Humans are always responsible for AI output.
* Contributors must be transparent and honest; this includes that AI-use must always be declared.
* In forums designed for humans (e.g., issue tracker, discussions) only humans are allowed to speak. We want to spend our time talking with humans, not with LLMs (or human proxies for LLMs).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that "limited exceptions" is already mentioned below, so definitely good to add it here too.

Comment thread AI_POLICY.md

Please understand that reviewing capacity is very limited for the project, so large PRs which appear to not have the requisite understanding might not get reviewed, and eventually closed or redirected.
Understanding from authors about what code they are contributing and how it fits into the larger picture is crucial; for new features in particular, we are looking for domain expertise.
If reviewers feel there is a lack of understanding from looking at the code, PR descriptions, or just general interactions with a contributor, we reserve the right to close the PR to save time and resources.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree it sounds a bit repetitive, but I think this is a very important point. We always tried to be a inclusive and welcoming community (and we still try hard!), so it make sense to stress these points since PR rejection might be taken badly in some cases (maybe more by the AI agents themselves than the human contributors.... It's important to stress we are welcoming and inclusive and willing to give our time to new contributors when there is genuine human effort behind, not just waste time interacting with AI through a human proxy.

Comment thread AI_POLICY.md Outdated
Assisted-by: ChatGPT:GPT-6.1-Sol-Light

Assisted-by: Claude:claude-opus-5-5 Cursor
```

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't feel strongly either way. But maybe it is a bit of an annoyance for us to check and make sure it is included in the squash-merge, so in the view that our time is limited maybe it is worth dropping and only requiring disclosure in the PR description.

Comment thread AI_POLICY.md
Any failures to comply with this policy should be reported to the MDAnalysis core developers through
our [standard communications channels](https://www.mdanalysis.org/pages/community/#ask-questions--get-help) or email to mdanalysis@numfocus.org .
The core developers may enforce this policy through a range of actions, which may include restricting or banning individuals from future contributions.
The Core Developers may enforce this policy through a range of actions, which may include restricting or banning individuals from future contributions.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

orbeckst and others added 5 commits November 27, 2026 12:09
Co-authored-by: Rocco Meli <r.meli@bluemail.ch>
Co-authored-by: Rocco Meli <r.meli@bluemail.ch>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants